package com.leon.lifeenginespace.spring;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @description: bean生命周期+bean后处理器
 * @author: WT
 * @date: 2024/4/28 21:30
 * @Version 1.0
 **/
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class BeanPostProcessorApplication {
    /**
     * 1、生命周期各个阶段
     */
    public static void main(String[] args) {
        //容器
        ConfigurableApplicationContext context = SpringApplication.run(BeanPostProcessorApplication.class, args);
        //销毁
        context.close();
    }

}